package com.hand.wfive.loginAndVip;

import android.text.TextUtils;

import rxhttp.wrapper.annotation.DefaultDomain;

public class ApiConfig {

    public static final int SUCCESSCODE = 200;
      public static final int USEREXISTCODE = 1;
      public static final int USERCHANGEINFOCODE = -1;

    @DefaultDomain() //默认域名
    public final static String baseUrl = "http://124.71.223.240/m/";
    public final static String basePayUrl = "http://www.quexingnet.cn/m/";
//    //测试环境
//    @DefaultDomain()
//    public final static String baseUrl = "http://43.136.104.27:8089/";
//    public final static String basePayUrl = "http://43.136.104.27:8089/";

    // 查询广告开关配置
    public final static String queryConfigByKey = "api/queryConfigByKey";
    // 查询会员价格
    // 查询活动信息
    // 意见反馈
//    public final static String feeback = "api/saveContact";
    // 获取隐私政策
    public final static String getPolicyInfo = "api/getPolicyInfo";
    // 获取第三方sdk清单列表
    public final static String getPrivateSdkInfo = "api/getPrivateSdkInfo";

    //获取开关状态
    public final static String getSwitchValueByParam = "api/switch/getSwitchValueByParam";


    // 添加云文件
    public final static String addCloudFile = "api/bsCloudFile/addCloudFile";
    // 删除云文件
    public final static String delCloudFile = "api/bsCloudFile/delCloudFile";
    // 查询用户云文件列表
    public final static String getUserFileList = "api/bsCloudFile/getUserFileList";
    //用户上传word时转图片
    public final static String word2images = "weboffice/wordToImage";
    public final static String wordIsCreateImage = "weboffice/wordIsCreateImage";
    //获取word文件转图片数据
    public final static String getWordImageData = "weboffice/getWordImageData";
    //保存word签名的图片
    public final static String saveImageSign = "weboffice/saveImageSign";
    //支付前信息
    public final static String getAppServerConfig = "api/bsServerConfigApi/getAppServerConfig";

    // 获取订单是否支付成功
    public final static String getOrderStatus = "orderApi/getOrderStatus";
    //word图片转文档
    public final static String imagesToWordFile = "weboffice/imagesToWordFile";
    public final static String imagesToWordIsDone = "weboffice/imagesToWordIsDone";
    //判断上传次数是否用完
    public final static String getUserUploadWordCount = "weboffice/getUserUploadWordCount";
    // 登录
    public final static String login = "api/doLoginOnNew";
    // 注册
    public final static String register = "api/doRegisterOnNew";
    // 修改密码
    public final static String modifyPw = "api/updatePswOnNew";
    // 刷新用户状态
    public final static String userIsVip = "api/userIsVip";
    // 强制更新
    public final static String appIsRenew = "api/appIsRenew";
    // 修改vip
    public final static String modifyVip = "api/updateVip";
    // 注销用户
    public final static String delAccount = "api/delAccount";
    // 查询会员价格
    public final static String queryVipPriceByKey = "api/queryVipPriceByKey";
    // 查询活动信息
    public final static String queryActivityConfig = "api/vip/queryActivityConfig";
    // 意见反馈
    //    public final static String feeback = "api/saveContact";
    // 获取隐私政策
    // 获取第三方sdk清单列表


    // 查询广告配置
    public final static String queryAdIdByPackage = "api/queryAdIdByPackage";
    //    public final static String queryConfigByKey = "api/queryConfigByKey";

    public static boolean isEncryptApi(String originalUrl) {
        return TextUtils.equals(originalUrl, ApiConfig.baseUrl + ApiConfig.login)
                || TextUtils.equals(originalUrl, ApiConfig.baseUrl + ApiConfig.register)
                || TextUtils.equals(originalUrl, ApiConfig.baseUrl + ApiConfig.modifyPw)
                || TextUtils.equals(originalUrl, ApiConfig.baseUrl + ApiConfig.userIsVip)
                || TextUtils.equals(originalUrl, ApiConfig.baseUrl + ApiConfig.appIsRenew);
    }
}